﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace EditAnyString.Providers
{
	/// <summary>
	/// Simple provider that allows any logged user to edit data.
	/// </summary>
	public class AnyLoggedUserEditAuthorizationProvider : IEASEditAuthorizationProvider
	{
		#region IEASEditAuthorizationProvider Members

		public bool CanInlineEdit
		{
			get { return HttpContext.Current.User.Identity.IsAuthenticated; }
		}

		public bool CanEdit
		{
			get { return HttpContext.Current.User.Identity.IsAuthenticated; }
		}

		#endregion
	}
}
